package com.df.scenes;

import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.CountDownLatch;

/**
 * 场景服务器，MMO则是地图服务器
 */
@SpringBootApplication
@EnableNacosConfig
@EnableDubbo
//@EnableGroovyUpdate(
//        interval = 30000,
//        localScriptPath = {"D:\\MyProject\\bakend\\java\\Game-Demo\\Services\\Account\\src\\main\\scripts"},
//        cachePath = "./groovy-scripts-cache"
//)
public class ScenesApplication {
    public static void main(String[] args) {
        SpringApplication.run(ScenesApplication.class,args);
        try {
            new CountDownLatch(1).await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
